<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

//自定义路由规则

$url = array(
    //WEB端路由
    '/^order$/' => 'Home/OrderPage/index', //客户管理页面
    '/^order_(\d+)$/' => 'Home/OrderPage/index?p=:1', //客户管理页面
    '/^pushNews$/' => 'Home/PushCenterPage/index', //推送消息页面
    '/^pushNews_(\d+)$/' => 'Home/PushCenterPage/index?p=:1', //推送消息页面
    '/^pushWarn$/' => 'Home/PushCenterPage/warn', //推送消息页面
    '/^pushWarn_(\d+)$/' => 'Home/PushCenterPage/warn?p=:1', //推送消息页面
    '/^pushCheck$/' => 'Home/PushCenterPage/check', //推送消息页面
    '/^pushCheck_(\d+)$/' => 'Home/PushCenterPage/check?p=:1', //推送消息页面
    '/^login$/' => 'Home/PublicPage/login', //登录页面
    '/^dealer$/' => 'Home/DealerPage/login', //经销商登录页面
    '/^product$/' => 'Home/PublicPage/product', //产品介绍页面
    '/^package$/' => 'Home/PublicPage/packageAd', //产品介绍页面
    '/^book\/(\d+)$/' => 'Home/PublicPage/book?h=:1', //产品介绍页面
    '/^apply$/' => 'Home/PublicPage/apply', //申请页面
    '/^applydealer$/' => 'Home/DealerPage/apply', //经销商申请页面
    '/^logout$/' => 'Home/PublicPage/logout', //退出页面
    '/^logoutdealer$/' => 'Home/DealerPage/logout', //经销商申请页面
    '/^account$/' => 'Home/AccountPage/index', //账号管理页面
    '/forgetPassword$/' => 'Home/PublicPage/forget', //忘记密码
    '/forgetPassworddealer$/' => 'Home/DealerPage/forget', //经销商忘记密码
    '/^resetPassword$/' => 'Home/PublicPage/reset', //重置密码
    '/^resetPassworddealer$/' => 'Home/DealerPage/reset', //重置密码
    '/^customer$/' => 'Home/CustomerPage/index', //客人页面
    '/^vip$/' => 'Home/CustomerPage/vip', //会员页面
);

return array(
    'URL_MODEL' => 2,
    'URL_HTML_SUFFIX' => 'html',
    'URL_PATHINFO_DEPR' => '/',
    'URL_ROUTER_ON' => true,
    'URL_ROUTE_RULES' => $url,
);
?>